import 'package:flutter/material.dart';
import '../demo/ui_demo.dart';
import 'ui_demo_listView.dart';
//void main() => runApp(new MyFirstApp());

class MyDemo extends StatelessWidget implements Demo {
  MyDemo(this.title);
  @override
  String title;
  @override
  Widget build(BuildContext context) {
    return new HomePage(
      title: this.title,
    );
  }
}

class HomePage extends StatelessWidget {
  String title;
  HomePage({this.title});
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: new AppBar(
          title: Text(this.title),
          actions: <Widget>[
            IconSource("list view","02"),
          ],
        ),
        body: ListViewDemo());
  }
}
